import request from "@/utils/request";


export function page(type,page,pageSize) {
    return request({
        url: '/admin/getGoodType?'+'page='+page+'&pageSize='+pageSize,
        method: 'post',
        data:type
    })
}
export function changeGoodType(type) {
    return request({
        url: '/admin/changeGoodType',
        method: 'post',
        data:type
    })
}

export function deleteGoodType(id) {
    return request({
        url: '/admin/deleteGoodType?id='+id,
        method: 'delete'
    })
}

export function addGoodType(type) {
    return request({
        url: '/admin/addGoodType',
        method: 'post',
        data:type
    })
}



export function getGoodTypeList() {
    return request({
        url: '/admin/getGoodTypeList',
        method: 'get',
    })
}
